How to use mootools in nodejs? Mark M253126-May-2015I’m want to use mootools on the serverside with nodejs?node.jsnode js Updated on 26-May-2015
Barbara Jones
26-May-2015The correct way now is via the npm, which is actually upto date.
npm install mootools –save
using it:
require("mootools");
// globals exported and types shimmed
var foo = new Class({}); // etc
things not exported: Element protos, Fx, Slick (and parser), Request (XHR), Swiff etc - if it touches the DOM, it won't be there.